package com.hnucm.ad0301;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class SignActivity extends AppCompatActivity implements View.OnClickListener {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sign);

        findViewById(R.id.saveBtn).setOnClickListener(this);
        findViewById(R.id.clearBtn).setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        if(view.getId()==R.id.moveBtn){
            Toast.makeText(SignActivity.this,"保存",Toast.LENGTH_SHORT);
        }else if(view.getId()==R.id.clearBtn){
            Toast.makeText(SignActivity.this,"清除",Toast.LENGTH_SHORT);
        }
    }
}
